package gradle.common.core.mode.page;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 1141193930@qq.com
 */
@Data
@Schema(description = "常用查询条件")
@EqualsAndHashCode(callSuper = true)
public class BaseQueryModel extends PageQuery {

    /**
     * 查询开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    @Schema(description = "查询开始时间")
    private LocalDateTime startTime;

    /**
     * 查询结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    @Schema(description = "查询结束时间")
    private LocalDateTime endTime;

    /**
     * 排序字段集合
     */
    @Schema(description ="排序字段集合")
    private List<QuerySort> sort;


}